package com.personal.mapper;

import com.personal.pojo.TCard;
import com.personal.pojo.TCardExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TCardMapper {
    int countByExample(TCardExample example);
    //彻底删除会员卡
    int deleteById(Integer cardid);

    int insert(TCard record);

    //插入新记录
    int insertSelective(TCard record);

    //查询所有会员卡
    List<TCard> selectByExample(TCardExample example);
    //修改方法
    int updateByCard(TCard card);
    int updateByExampleSelective(@Param("record") TCard record, @Param("example") TCardExample example);

    int updateByExample(@Param("record") TCard record, @Param("example") TCardExample example);
    //根据会员卡名搜索会员卡
    List selectByName(String cardName);
    //根据会员卡号搜索会员卡
    TCard selectById(Integer cardid);
}